package com.xzj.admin.base.domain.gateway;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: xzj-admin
 * @ClassName: XzjRouteDefinition
 * @description: 路由模型类
 * @author: XiaZunJun
 * @create: 2024-10-11 11:31
 */
@Data
public class XzjRouteDefinition {
    /** 网关路由ID */
    private String id;

    /** 断言配置 */
    private List<XzjRouterConfigDefinition> predicatesConfig = new ArrayList<>();

    /** 过滤器配置 */
    private List<XzjRouterConfigDefinition> filtersConfig = new ArrayList<>();

    /** 网关路由lb */
    private String uri;

    /** 服务名 */
    private String serverName;

    private int order = 0;

}
